<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/res/js/jquery.js"></script>
	<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
	<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
	<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
	<script language="javascript" type="text/javascript" src="/res/js/lib/datePicker/WdatePicker.js"></script>
 	<script type="text/javascript" src="/res/js/pages/account/noticeRefundDetail.js"></script> 
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">资金日志</a></li>
    <li><a href="#">个人账单详情</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    <form id="exportForm" action="/account/notice/noticeRefundDetail/export" method="post"></form>
    <form id="queryForm" action="/account/notice/noticeRefundDetail" method="post">     
    <div class="tools" style="margin:3px 0px;background: #efefef;padding:6px 0px;">  
        <span class="toolbar" style="margin-left:10px;">
                       用户名：<input name="userName" value="${dto.userName}" type="text" class="dfinput" style="width:100px;"/>
                       手机号：<input name="mobile" value="${dto.mobile}" type="text" class="dfinput" style="width:100px;"/>
                       时间：<input id="d12" name="createTime" value="${dto.createTime}" type="text" class="dfinput" style="width:100px;" onClick="WdatePicker()"/>
              <img onclick="WdatePicker({el:'d12'})" src="/res/js/lib/datePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle">至
              <input id="d13" name="createTime1" value="${dto.createTime1}" type="text" class="dfinput" style="width:100px;" onClick="WdatePicker()"/>
              <img onclick="WdatePicker({el:'d13'})" src="/res/js/lib/datePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"> 
                     支付方式：
                 <select class="dfinput"  name="tradeType" style="width:210px;" onchange="submit()">
 			    <option value="" ${!empty(dto)}>---全部---</option>
				<option value="1"${!empty(dto) && dto.tradeType=="1"?"selected":""}>用户充值</option>
				<option value="2"${!empty(dto) && dto.tradeType=="2"?"selected":""}>用户余额转帐</option>
				<option value="3"${!empty(dto) && dto.tradeType=="3"?"selected":""}>用户提现</option>
				<option value="4"${!empty(dto) && dto.tradeType=="4"?"selected":""}>会员升级</option>
				<!--  <option value="5"></option>-->
				<option value="6"${!empty(dto) && dto.tradeType=="6"?"selected":""}>推存返币</option>
				<option value="7"${!empty(dto) && dto.tradeType=="7"?"selected":""}>管理员现金充值</option>
				<option value="8"${!empty(dto) && dto.tradeType=="8"?"selected":""}>管理员商币充值</option>
				<option value="9"${!empty(dto) && dto.tradeType=="9"?"selected":""}>系统返现</option>
				<option value="10"${!empty(dto) && dto.tradeType=="10"?"selected":""}>余额转账给推荐人返币</option>
				<option value="11"${!empty(dto) && dto.tradeType=="11"?"selected":""}>余额转账给合伙人返币</option>
				<option value="12"${!empty(dto) && dto.tradeType=="12"?"selected":""}>在线支付转账给推荐人返币</option>
				<option value="13"${!empty(dto) && dto.tradeType=="13"?"selected":""}>在线支付转账给合伙人返币</option>
				<option value="14"${!empty(dto) && dto.tradeType=="14"?"selected":""}>余额会员升级推荐人返现金</option>
				<option value="15"${!empty(dto) && dto.tradeType=="15"?"selected":""}>在线支付会员升级推荐人返现金</option>
				<option value="16"${!empty(dto) && dto.tradeType=="16"?"selected":""}>在线余额转帐</option>
				<option value="17"${!empty(dto) && dto.tradeType=="17"?"selected":""}>分享返币</option>
				<option value="18"${!empty(dto) && dto.tradeType=="18"?"selected":""}>兑换商币</option>
				<option value="19"${!empty(dto) && dto.tradeType=="19"?"selected":""}>赠送商币</option>
				<option value="22"${!empty(dto) && dto.tradeType=="22"?"selected":""}>购买商币</option>
			   </select>  
              
                          
        </span>
    	<ul class="toolbar" style="margin-left:20px;">
	        <li onclick="$('#queryForm').submit()"><span><img src="/res/images/ico06.png" /></span>搜索</li>	         
	        <li onclick="exportDat()"><span><img src="/res/images/f05.png" /></span>导出</li>
        </ul>    
    </div>    
    <table class="tablelist">
    	<thead>
	    	<tr>
	        <th class="chk"><input id="chkAll" type="checkbox" value="" /></th>
	        <th>编号</th>
	        <th>会员名</th>
			<th>项目名称</th>
			<th>现金</th>
			<th>商币</th> 
			<th>现金结存</th>
			<th>商币结存</th> 					
			<th>付款单号</th> 
			<th>外部单号</th>
			<th>来源</th> 
			<!-- <th>备注</th> -->
			<th>支付方式</th> 
			<th>创建时间</th>  
			<th>支付时间</th> 
			<th>是否支付</th>
	        </tr>
        </thead>
        <tbody>        
	        <c:forEach items="${list}" var="row" varStatus="status">
		        <tr title="${row.memo}">
		        <td align="center"><input id="chk_${row.id}" type="checkbox" value="${row.id}" /></td>
		        <td>${status.index+1}</td>	
		        <td><a href="javascript:viewUser('${row.userid}')" class="tablelink">${row.user_name}</a></td>
		        <td>${row.title}</td>	 
		        <td>${!empty(row.money)?(row.money>0?"+¥":"-¥"):""}${!empty(row.money)&&row.money<0?-row.money:row.money}</td>
		        <td>${!empty(row.cloud_money)?(row.cloud_money>0?"+¥":"-¥"):""}${!empty(row.cloud_money)&&row.cloud_money<0?-row.cloud_money:row.cloud_money}</td>		        
		        <td>${row.money_down}</td>
		        <td>${row.cloud_money_down}</td>              
		        <td>${row.sn}</td>
		        <td>${row.outer_sn}</td>
		        <td><a href="javascript:viewUser('${row.from_user_id}')" class="tablelink">${row.from_user_mobile}</a></td>
		        <%-- <td title="${row.memo}">${fn:substring(row.memo,0,20)}${fn:length(row.memo)>20?"...":""}</td> --%>		        
		        <td>${row.payment_name}</td>
		        <td><fmt:formatDate value="${row.create_time}" pattern="yyyy-MM-dd HH:mm:ss"/> </td> 
		        <td><fmt:formatDate value="${row.outer_time}" pattern="yyyy-MM-dd HH:mm:ss"/> </td>
		        <td>${row.is_paid==1?"已支付":"未支付"}</td>	
		        </tr>  
	        </c:forEach>
         </tbody>
    </table>   
    </form>
      
    <tags:pager pagerRange="20" pageSize="${pager.pageSize}" totalPage="${pager.pageCount}" curIndex="${pager.pageIndex}" rowCount="${pager.rowCount}" formId="queryForm"></tags:pager> 
 
    
    </div>
    
    <script type="text/javascript">
	   $('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
